<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>设置</title>
</head>
<body>
<h1>修改密码</h1>
<form action="/updatePassword" method="post">
    <label for="oldPassword">旧密码:</label>
    <input type="password" id="oldPassword" name="oldPassword" required><br><br>
    <label for="newPassword">新密码:</label>
    <input type="password" id="newPassword" name="newPassword" required><br><br>
    <label for="confirmPassword">确认新密码:</label>
    <input type="password" id="confirmPassword" name="confirmPassword" required><br><br>
    <button type="submit">保存修改</button>
</form>
<p th:if="${error}" th:text="${error}" style="color: red;"></p>
<p th:if="${success}" th:text="${success}" style="color: green;"></p>
</body>
</html>